set the G_PARAM_CONSTRUCT flag on the GtkWindow:application property
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 10 Jan 2012 15:03:15 +0000 (16:03 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 10 Jan 2012 15:03:57 +0000 (16:03 +0100)
This allows subclass to get the value of this property in their constructed
method.

https://bugzilla.gnome.org/show_bug.cgi?id=667628

gtk/gtkwindow.c

index a9221f26ed89838d258536f9e4599f4f79046dd7..a04d7fef604679477748fb673d0b3dcce94c4e4c 100644 (file)
@@ -1021,7 +1021,7 @@ gtk_window_class_init (GtkWindowClass *klass)
                                                         P_("GtkApplication"),
                                                         P_("The GtkApplication for the window"),
                                                         GTK_TYPE_APPLICATION,
-                                                        GTK_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+                                                        GTK_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
 
   window_signals[SET_FOCUS] =
     g_signal_new (I_("set-focus"),